//系统访问url
var curl_host = window.location.host;
var ws_curl_host = curl_host;
var isTest = false;
// isTest = true;
var fdStart1 = curl_host.indexOf("yahua.tpddns.cn");
var fdStart2 = curl_host.indexOf("1z823403u5.iask.in");
var fdStart3 = curl_host.indexOf("192.168.1.126");
if (fdStart1 > 0) {
    curl_host = "yahua.tpddns.cn:8180";
    ws_curl_host = "yahua.tpddns.cn";
}
if (fdStart2 > 0) {
    curl_host = "1z823403u5.iask.in:8180";
    ws_curl_host = "1z823403u5.iask.in";
}
if (fdStart3 > 0) {
    curl_host = "192.168.1.126:8180";
    ws_curl_host = "192.168.1.126";
}


//}
////本机调试
if (curl_host.indexOf("localhost") == 0) {
    isTest = true;
    curl_host = "www.ym801.com";
}

//信息发布
//var InformationUrl = "http://140.249.48.159:8081";
var InformationUrl = "http://" + curl_host + "/irms";

//alert(InformationUrl);
//组织架构
//var OrgUrl = "http://140.249.48.159:8082";
var OrgUrl = "http://" + curl_host + "/dmp";

//alert(OrgUrl);
//排队叫号
//var QueueCallUrl = "http://140.249.48.159:8084";
var QueueCallUrl = "http://" + curl_host + "/qcms";

//alert(QueueCallUrl);

//系统权限
//var SystemLimitUrl = "http://140.249.48.159:8086";
var SystemLimitUrl = "http://" + curl_host + "/sys";

//alert(SystemLimitUrl);
//排班管理
var ArrangeUrl = OrgUrl;
//滚动字幕
//var RollingsubtitleUrl = "http://140.249.48.159:8085";
var RollingsubtitleUrl = "http://" + curl_host + "/hwms";
var HardwareMgrUrl_Websocket = "ws://" + ws_curl_host + "/hwms";

var CallwareMgrUrl_Websocket = "ws://" + ws_curl_host + "/qcms";

//alert(RollingsubtitleUrl);
//硬件管理
var HardwareMgrUrl = RollingsubtitleUrl;

//叫号器
//var CallNumberUrl = "http://140.249.48.159:8088";
var CallNumberUrl = "http://" + curl_host + "/calling";

//alert(CallNumberUrl);
//分诊台
//var TriageUrl = "http://140.249.48.159:8087";
var TriageUrl = "http://" + curl_host + "/triage";

//alert(TriageUrl);
//分诊屏
var TriageTerUrl = QueueCallUrl;
